<#assign type=0>
<#if parameters.navigatetype?? && parameters.navigatetype == "contain">
<#assign type=0>
<#elseif parameters.navigatetype?? && parameters.navigatetype == "iframe">
<#assign type=2>
<#elseif parameters.navigatetype?? && parameters.navigatetype == "ajax">
<#assign type=1>
<#if parameters.selected?? && parameters.selected> 
<script>jQuery(function(){$("#${__tab_id__!""?html}_a${__tab_i__}").click();})</script>
</#if>
<#else>
<#assign type=0>
</#if>
<#if parameters.selected?? && parameters.selected> 
<#assign tab="tab_s">
<#assign dis="block">
<#else>
<#assign tab="tab">
<#assign dis="none">
</#if>
<span id="${__tab_id__}_tab_l_${__tab_i__}" class="${tab}_l<#if __tab_i__==0 >0</#if>"></span><#rt>
<span id="${__tab_id__}_tab_m_${__tab_i__}" class="${tab}_m"><#rt>
<table id="${__tab_id__}_tab_table_${__tab_i__}" class="tab_table" cellspacing="0" cellpadding="0"><#rt>
<tr><#rt>
<#if parameters.titleIcon??>
<td class="tab_title_img"><img src="${parameters.titleIcon}"></td>
</#if>
<td><#rt>
<a id="${__tab_id__}_a${__tab_i__}" class="tab_a" onclick="doTab(${__tab_i__},'${__tab_id__}',${type});return false;" <#rt>
<#if parameters.navigateurl??>
 href="${parameters.navigateurl}" <#rt>
</#if>
>${parameters.title!""?html}</a><#rt>
</td><#rt>
<#if type == 2 && (parameters.allowtargetinblank?? && parameters.allowtargetinblank)>
<td class="tab_blank_img"><a target="_blank" href="${parameters.navigateurl}"><img title="在新页面打开" src="<@s.url value='/struts/water/image/tab/open.gif'/>"></a></td><#rt>
</#if>
<#if type==1 || type == 2>
<td class="tab_refresh_img"><a target="_blank" onclick="doTab(${__tab_i__},'${__tab_id__}',${type},true);return false;"><img title="刷新" src="<@s.url value='/struts/water/image/refresh.gif'/>"></a></td><#rt>
</#if>
</tr><#rt>
</table><#rt>
</span><#rt>
<span id="${__tab_id__}_tab_r_${__tab_i__}" class="${tab}_r"></span><#rt>
<div id="${__tab_id__}_tab${__tab_i__}"  <#rt>
<#if parameters.cssClass??> class="tab_contain ${parameters.cssClass?html}"<#else> class="tab_contain"</#if><#rt/>
<#if parameters.cssStyle??> style="display:${dis};${parameters.cssStyle?html}"<#else> style="display:${dis};"</#if><#rt/>
><#rt/>
<#if type==2>
<iframe id="${__tab_id__}_iframe${__tab_i__}" class="tab_iframe" scrolling="Auto" frameborder="0" marginheight="0" marginwidth="0" name="${__tab_id__}_iframe${__tab_i__}" <#rt/>
<#if parameters.selected?? && parameters.selected> 
<#if parameters.navigateurl??>
 src="${parameters.navigateurl}" <#rt>
</#if>
</#if>
></iframe><#rt/>
</#if>